//menu相关数据ts类型


export interface ResponseData {
    code: number,
    message: string,
    ok: boolean,
}

//菜单与按钮数据的ts类型
export interface Permission {
    id: number
    createTime: string
    updateTime: string
    pid: number
    name: string
    code: string
    toCode: string
    type: number
    status: null
    level: number
    children?: PermissionList
    select: boolean
}

export type PermissionList = Permission[]

//菜单权限有按钮权限返回数据ts类型
export interface PermissionResponseData extends ResponseData{
    data: PermissionList
}

//添加与更新菜单携带的参数的ts类型
export interface MenuParams{
    id?:number
    code:string  //权限值
    level: number
    name: string
    pid : number //要添加的父菜单
}



